Function |nan
std/types/float::|nan
Usage
|nan<F>()
Generics
◻ F: Float
Return
↴ F
Return the not-a-number value for floating type.
⚠️ NaN is not equal to itself; use is_nan() to test for it rather than equality comparison.
Press ← or → to navigate between chapters
Press S or / to search in the book
Press ? to show this help
Press Esc to hide this help
std/types/float::|nan
|nan<F>()
◻ F: Float
↴ F
Return the not-a-number value for floating type.
⚠️ NaN is not equal to itself; use is_nan() to test for it rather than equality comparison.